package com.opentae.data.mall.interfaces;

import com.opentae.core.mybatis.config.MyBatisRepository;
import com.opentae.core.mybatis.mapper.Mapper;
import com.opentae.data.mall.beans.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;

import java.util.Date;
import java.util.List;

/**
 * 
 * Created by exampleCreater.
 */
@MyBatisRepository("tae_mall_managerUserMapper")
@Scope("singleton")
@Lazy(true)
public interface ManagerUserMapper extends Mapper<ManagerUser> {

    BusAndAgentRate selBusAndAgentRate(@Param("busId") Long busId,@Param("pid") Long pid);

    List<BusinessSimpleInfo> simpleBusinessList(@Param("agentId") Long agentId,
                                                @Param("startTime") Date startTime,
                                                @Param("endTime") Date endTime,
                                                @Param("start") Integer start,
                                                @Param("size") Integer size);

    BusinessSimpleInfo simpleBusinessById(@Param("busId") Long busId);

    SettleRate selAgentRateBySettleId(@Param("settleId") Long settleId,@Param("pid")Long pid);
    SettleRate selBusinessRateBySettleId(@Param("settleId") Long settleId);

    BusinessBankAccount selBusinessAccount(@Param("businessId") Long businessId,@Param("pid")Long pid);
}
